<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');
?>
<form name="searchform" action="?m=ushop&c=tools&a=order_stats&menuid=<?php echo $_GET['menuid'];?>" method="post"  style="margin:10px auto; width:99%;">
<table width="100%" cellspacing="0" class="search-form">
    <tbody>
		<tr>
		<td>
        <div class="explain-col" style="text-align:left;">
			<?php echo '开始时间'; ?>:
			<?php echo form::date('search[start_time]','','')?> 
			<?php echo '结束时间';?>   
			<?php echo form::date('search[end_time]','','')?>    
            <input type="submit" value="<?php echo L('search')?>" class="button" name="dosubmit">
		</div>
		</td>
		</tr>
    </tbody>
</table>
</form>
<style>
#flash_pic {width:99%; margin:auto; text-align:left;}
#flash_pic p {background:#F1F1F1; margin:0; padding-top:1px; height:24px; line-height:24px;}
span.on {border-right:2px solid #A3A3A3; background:#F1F1F1; color:#000; padding:4px 15px 4px 18px;}
span.off {border-right:1px solid #FFF; background:#E2E9EA; color:#999; padding:4px 15px 4px 18px;}
</style>
<div id="flash_pic">
    <p id="order_table">
        <span id="order_circs-tab" onclick="order_table(this.id,'order_flash0')" class="on">订单概况</span>
        <span id="pay-tab" onclick="order_table(this.id,'order_flash2')" class="off">支付方式 </span>
    </p>
    <div id="order_flash0">
    	<?php echo $Fusion_Images0;?>
    </div>
    <div id="order_flash2" style="display:none;">
    	<?php echo $Fusion_Images2;?>
    </div>
</div>

<script>
	function order_table(obj0,obj1) {
		$('#order_table > span').removeClass().addClass('off');
		$('#order_table ~ div').css({display:"none"});
		$('#'+obj0).removeClass().addClass('on');
		$('#'+obj1).css({display:"block"});
	}
</script>
</body>
</html>